package designmode.headfirst.strategy.duck;

import designmode.headfirst.strategy.action.eat.EatWithNo;
import designmode.headfirst.strategy.action.fly.FlyWithNo;

/**
 * 木头鸭子
 * <p>Filename: dp.headFirst.策略模式.duck.DuckWithWood.java</p>
 * <p>Date: 2020-09-24 17:08.</p>
 *
 * @author <a href="mailto:liufuguo@qianmi.com">OF3581-刘富国</a>
 * @version 0.1.0
 */
public class DuckWithWood extends BaseDuck {

    public DuckWithWood() {
        flyAction = new FlyWithNo();
        eatAction = new EatWithNo();
    }

    @Override
    public void introduce() {
        System.out.println("我是木头鸭子");
    }
}
